.class public Lcom/nemustech/tiffany/world/TFObjectProvider;
.super Lcom/nemustech/tiffany/world/TFItemProvider;
.source "TFObjectProvider.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/nemustech/tiffany/world/TFItemProvider",
        "<",
        "Lcom/nemustech/tiffany/world/TFObject;",
        ">;"
    }
.end annotation


# instance fields
.field private TAG:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 8
    invoke-direct {p0}, Lcom/nemustech/tiffany/world/TFItemProvider;-><init>()V

    .line 5
    const-string v0, "TFObjectProvider"

    iput-object v0, p0, Lcom/nemustech/tiffany/world/TFObjectProvider;->TAG:Ljava/lang/String;

    .line 9
    return-void
.end method


# virtual methods
.method public removeItemAt(I)Lcom/nemustech/tiffany/world/TFObject;
    .locals 2
    .parameter "idx"

    .prologue
    .line 24
    invoke-super {p0, p1}, Lcom/nemustech/tiffany/world/TFItemProvider;->removeItemAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/nemustech/tiffany/world/TFObject;

    .line 25
    .local v0, object:Lcom/nemustech/tiffany/world/TFObject;
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->associateToHolder(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 26
    return-object v0
.end method

.method public bridge synthetic removeItemAt(I)Ljava/lang/Object;
    .locals 1
    .parameter "x0"

    .prologue
    .line 4
    invoke-virtual {p0, p1}, Lcom/nemustech/tiffany/world/TFObjectProvider;->removeItemAt(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    return-object v0
.end method

.method public setItem(Lcom/nemustech/tiffany/world/TFObjectContainer;I)V
    .locals 2
    .parameter "objectContainer"
    .parameter "itemIndex"

    .prologue
    .line 13
    invoke-virtual {p0}, Lcom/nemustech/tiffany/world/TFObjectProvider;->getItemCount()I

    move-result v1

    if-lez v1, :cond_0

    .line 14
    invoke-virtual {p0}, Lcom/nemustech/tiffany/world/TFObjectProvider;->getItemCount()I

    move-result v1

    rem-int v0, p2, v1

    .line 15
    .local v0, index:I
    invoke-virtual {p0, v0}, Lcom/nemustech/tiffany/world/TFObjectProvider;->getItem(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/nemustech/tiffany/world/TFObject;

    invoke-virtual {p1, p0}, Lcom/nemustech/tiffany/world/TFObjectContainer;->setObject(Lcom/nemustech/tiffany/world/TFObject;)V

    .line 20
    .end local v0           #index:I
    :goto_0
    return-void

    .line 18
    .restart local p0
    :cond_0
    const/4 v1, 0x0

    invoke-virtual {p1, v1}, Lcom/nemustech/tiffany/world/TFObjectContainer;->setObject(Lcom/nemustech/tiffany/world/TFObject;)V

    goto :goto_0
.end method
